/**
 * 
 */
package com.leyu.mall.dao.user;

import org.apache.ibatis.annotations.Param;

import com.leyu.mall.domain.user.UserBase;
import com.leyu.mall.domain.user.UserQueryParam;

/**
 * 会员表操作接口
 * 
 * @author change
 * 
 */
public interface UserBaseMapper extends CURDMapper<UserBase>,
		QuerySupportMapper<UserBase, UserQueryParam> {

	public UserBase findByUsername(@Param("username") String name);

	public UserBase findByEmail(@Param("email") String email);

	public int changePassword(@Param("userName") String userName,
			@Param("oldPassword") String oldPassword,
			@Param("newPassword") String newPassword);

}
